import request from '@/utils/request'

// 工单统计接口
export const getUserWork = data => request.get('/task-service/task/userWork', { params: data })

// 订单总数
export const getOrderCount = data => request.get('order-service/report/orderCount', { params: data })

// 销售总数
export const getOrderAmount = data => request.get('/order-service/report/orderAmount', { params: data })

// 销售额分布
export const getRegionCollect = data => request.get(`/order-service/report/regionCollect/${data.start}/${data.end}`)

// 销售额趋势
export const getAmountCollect = data => request.get(`/order-service/report/amountCollect/${data.collectType}/${data.start}/${data.end}`)

// 获取前十的商品
export const getskuTop = data => request.get(`/order-service/report/skuTop/${data.topValue}/${data.start}/${data.end}`)

// 合作商点位数
export const getNodeCollet = () => request.get('/vm-service/node/nodeCollect')
